
package com.zdxlz.fcmp.business.controller.third.party.ict;

import com.zdxlz.fcmp.business.dto.ict.TicketInfoDto;
import com.zdxlz.fcmp.business.service.ITicketInfoService;
import com.zdxlz.fcmp.common.core.util.R;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;

import static com.zdxlz.fcmp.common.core.constant.CommonConstants.OPERATION_SUCCESS;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author: aman
 * @since 2025-01-30
 */
@RestController
@RequestMapping("/api/v1/ict/ticket")
@AllArgsConstructor
public class IctTicketInfoController {

    private ITicketInfoService ticketInfoService;

    @PostMapping
    public R create(@RequestBody TicketInfoDto ticketInfoDto) {
        return R.ok(ticketInfoService.createTicketInfo(ticketInfoDto), OPERATION_SUCCESS);
    }
}
